package br.com.pd.messaging.bean;

import java.util.ArrayList;
import java.util.List;

public class Supplier {
	private String name;
	private List<Product> products;
	
	public Supplier(){
		this.products = new ArrayList<Product>();
	}
	
	
	public void addProduct(Product p){
		products.add(p);
	}


	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("Name: " + name + "\n");
		for (Product p : this.products) {
			sb.append(p.toString());
		}
		return super.toString();
	}
	
	
	
	
	
}
